flow of execution in python class 12